package com.huang.api.service;


import com.huang.api.factory.UserServiceFallbackFactory;
import com.huang.common.core.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = ServiceNameConstants.USER_SERVICE, fallbackFactory = UserServiceFallbackFactory.class)
public interface UserService
{

    @RequestMapping("/api/getUser")
    public String getUser();

    @RequestMapping("/api/addUser")
    public Boolean addUser(@RequestParam("userName") String userName, @RequestParam("age")Integer age);


}
